//
// Created by 吴锐 on 2022/2/26.
//

#include "iostream"

using namespace std;

class Base {
public:
    virtual void func() = 0;
};

class Son : public Base {
public:
    virtual void func() {
        cout << "func函数调用" << endl;
    }
};

void test01() {
//    Base a;
//    Son s;
    Base* base = new Son;
    base->func();
}

int main() {
    test01();
    return 0;
}